package com.bdqn.t382.service.impl;

import com.bdqn.t382.mapper.BookManageMapper;
import com.bdqn.t382.pojo.BookManage;
import com.bdqn.t382.service.BookManageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class BookManageServiceImp implements BookManageService {

    @Autowired
    private BookManageMapper bookManageMapper;

    @Override
    public List<BookManage> getListBiz(BookManage bookManage) {
        return bookManageMapper.getList(bookManage);
    }

    @Override
    public BookManage getByIdBiz(Integer id) {
        return bookManageMapper.getById(id);
    }

    @Override
    public int insertBiz(BookManage bookManage) {
        return bookManageMapper.insert(bookManage);
    }

    @Override
    public int updateBiz(BookManage bookManage) {
        return bookManageMapper.update(bookManage);
    }

    @Override
    public int deleteBiz(Integer id) {
        return bookManageMapper.delete(id);
    }
}
